package org.jeecg.modules.htxincailiao.policy.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 政策
 * @Author: jeecg-boot
 * @Date: 2024-07-09
 * @Version: V1.0
 */
@Data
@TableName("ht_policy")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ht_policy对象", description = "政策")
public class HtPolicy implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 供需类型
     */
    @ApiModelProperty(value = "供需类型")
    private String demandType;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 首页排序
     */
    @ApiModelProperty(value = "首页排序")
    private Integer homeSort;
    /**
     * 标题
     */
    @Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String name;
    /**
     * 副标题
     */
    @Excel(name = "副标题", width = 15)
    @ApiModelProperty(value = "副标题")
    private String subname;
    /**
     * 主图
     */
    //@Excel(name = "主图", width = 15)
    @ApiModelProperty(value = "主图")
    private String cover;
    /**
     * 详细描述
     */
    //@Excel(name = "详细描述", width = 15)
    @ApiModelProperty(value = "详细描述")
    private String content;
    /**
     * 附件
     */
    //@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private String attachments;
    /**
     * 是否为首页推荐 0-不推荐 1-推荐
     */
    @Excel(name = "是否为首页推荐", width = 15, dicCode = "is_home_recommended")
    @ApiModelProperty(value = "是否为首页推荐 0-不推荐 1-推荐")
    private Integer isHomeRecommended;
    /**
     * 状态：0-未审核 1-审核中 2-已通过 3-已驳回
     */
    @Excel(name = "状态", width = 15, dicCode = "audit_status")
    @ApiModelProperty(value = "状态：0-未审核 1-审核中 2-已通过 3-已驳回")
    @Dict(dicCode = "audit_status")
    private Integer auditStatus;
    /**
     * 审批意见
     */
    @Excel(name = "审批意见", width = 15)
    @ApiModelProperty(value = "审批意见")
    private String auditComments;
    /**
     * 文章来源类型（0-原创，1-转载）
     */
    @ApiModelProperty(value = "文章来源类型（0-原创，1-转载）")
    private Integer sourceType;
    /**
     * 文章来源
     */
    @Excel(name = "文章来源", width = 15)
    @ApiModelProperty(value = "文章来源")
    private String source;
    /**
     * 采集站点
     */
    @Excel(name = "采集站点", width = 15)
    @ApiModelProperty(value = "采集站点")
    private String site;
    /**
     * 逻辑删除：0-未删除,1-删除。
     */
    @ApiModelProperty(value = "逻辑删除：0-未删除,1-删除。")
    @TableLogic
    private Integer isDeleted;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**
     * SEO关键字
     */
    @Excel(name = "SEO关键字", width = 15)
    @ApiModelProperty(value = "SEO关键字")
    private String seoKeywords;
    /**
     * 描述
     */
    @Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String seoDescription;
    /**
     * 分类ID
     */
    @Excel(name = "分类ID", width = 15, dictTable = "ht_policy_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "分类ID")
    @Dict(dictTable = "ht_policy_category", dicText = "name", dicCode = "id")
    private String categoryId;
    /**
     * 点击量
     */
    @Excel(name = "点击量", width = 15)
    @ApiModelProperty(value = "点击量")
    private Integer clickCount;

    @TableField(exist = false)
    private Integer pageNo=1;

    @TableField(exist = false)
    private Integer pageSize=10;
}
